import request from '@/utils/request'

//
export function getTaskList() {
  return request({
    url: 'api/tasks/list/',
    method: 'get'
  })
}

export function stop(data) {
  return request({
    url: 'api/tasks/stop/',
    method: 'post',
    data
  })
}

export function start(data) {
  return request({
    url: 'api/tasks/start/',
    method: 'post',
    data
  })
}

export function add(data) {
  return request({
    url: 'api/tasks/add/',
    method: 'post',
    data
  })
}

export function del(data) {
  return request({
    url: 'api/tasks/delete/',
    method: 'post',
    data
  })
}

export function edit(id, data) {
  return request({
    url: 'api/tasks/update/',
    method: 'post',
    data
  })
}

